
<?php echo $this->Html->css(array(HOST.'/form',HOST.'/news.web.waldi'),null,array('inline'=>false));?>
<body style="width: 800px; min-width: 800px; background: #fff">

		<div style="width: 800px; padding: 20px;">			

				<?php
				echo $javascript->link('ckeditor/ckeditor');
				//$config['toolbar'] = array( 
				//    array( 'Bold', 'Italic', 'Underline', 'Strike' ), 
				//    array( 'Image', 'Link', 'Unlink', 'Anchor' ) 
				//); 
				$config['height'] = 200;
				?>
				
				<div class="form">
				<?php echo $cksource->create(__("News",true),array('url'=>array('plugin'=>'calendar','controller'=>'news','action'=>'add'),'type' => 'file'));?>

					<?php
						echo $this->Form->input('new_group_id',array('label'=>'Type','options'=>$newsGroups));
						echo $this->Form->input('on_date',array('label'=>'Data'));
						echo $this->Form->input('name',array('label'=>__d('calendar','Tytuł',true),'style'=>'width: 100%'));
						echo $this->Form->input('small_content',array('label'=>__d('calendar','Treść do listy',true),'style'=>'width: 100%; height: 60px'));
						echo $cksource->ckeditor('content',array('config'=>$config, 'label'=>__d('calendar','Pełna treść',true),'style'=>'width: 100%;'));
						
						//echo $this->Form->input('NewUpload.0.file', array('type' => 'file','label'=>__d("calendar","Zdjęcie",true)));
						//echo $this->Form->input('url',array('label'=>__d('calendar','Adres URL',true),'style'=>'width: 100%'));
						
					?>

				<?php echo $this->Form->end(__('Submit', true));?>
				</div>
				
			</div>
			<div class="clr"></div>

</body>
